Performance of Sequential SLG Evaluation

نویسندگان

  • Terrance Swift
  • David S. Warren
چکیده

SLG is a table-oriented resolution method that is gaining increasing attention due to its ability to combine the deductive database and logic programming paradigms. As an example of its applicability to deductive databases, SLG is asymptotically equivalent to magic template evaluations over the class of deenite programs. In terms of the logic programming (and non-monotonic) paradigms, SLG computes the well-founded model for non-stratiied programs, and has been extended to compute 3-valued and stable model semantics. SLG resembles SLD in that it admits a tuple-at-a-time resolution method, so it can make use of many of the techniques developed in implementing SLD over the past decade. Indeed, a program can contain any mixture of SLG and SLD evaluated predicates. As a result SLG forms a natural basis for extending Prolog systems. This paper presents performance analysis and comparisons of the SLG-WAM, an abstract machine-oriented implementation of SLG. Firstly, the results indicate that when executing SLD, the overhead of the SLG-WAM compared to a similar WAM implementation is minimal, and usually less than 10%. Furthermore, results are presented to indicate tradeoos between SLD and SLG evaluation for a variety of programs. Surprisingly, SLG derivation may be expected to be competitive with SLD derivation on numerous datalog programs, even when SLD terminates and contains no redundant subcomputations. Finally, performance comparisons indicate that the SLG-WAM is about an order of magnitude faster than current deductive database systems even for datalog queries. These results call into question traditional arguments about top-down versus bottom-up evaluation ee-ciency, and may provide information of use in designing and implementing the next generation of logic programming and deductive database systems.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Analysis of Sequential SLG Evaluation

SLG is a table-oriented resolution method that has the ability to combine the deductive database and logic programming paradigms. As an example of its applicability to deductive databases, SLG terminates and has polynomial data complexity for programs with nite models. In terms of the logic programming (and non-monotonic) paradigms, SLG computes the well-founded model for non-stratiied programs...

متن کامل

Parallelizing Tabled Evaluations

SLG is a table-oriented resolution method that extends SLD evaluation in two ways. It computes, with polynomial data complexity, the well-founded model for logic programs with negation and it terminates for programs with the bounded-term-size property. Furthermore SLG has an eecient sequential implementation for left-to-right modularly stratiied programs in the SLG-WAM of XSB 13]. This paper ad...

متن کامل

Parallelizing Tabled Evaluations (Extended Abstract)

SLG is a table-oriented resolution method that extends SLD evaluation in two ways. It computes the well-founded model for logic programs with negation with polynomial data complexity, and it terminates for programs with the bounded-term-size property. Furthermore SLG has an ef-cient sequential implementation for modularly stratiied programs in the SLG-WAM of XSB. This paper addresses general is...

متن کامل

Analysis of SLG-WAM Evaluation of Definite Programs

SLG is a table-oriented resolution method that combines the deduc-tive database and logic programming paradigms. SLG is applicable to de-ductive databases since it terminates and has polynomial data complexity for programs with nite models. In terms of the logic programming (and non-monotonic) paradigms, SLG computes the well-founded model for non-stratiied programs, and has been extended to co...

متن کامل

Eeciently Implementing Slg Resolution

SLG is a table-oriented resolution method that is gaining increasing attention due to its ability to combine the deductive database, non-monotonic reasoning and logic programming paradigms. SLG resembles SLD in that it admits a tuple-at-a-time resolution method, so it can make use of many of the techniques developed in implementing SLD over the past decade. Indeed, a program can contain any mix...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993